package com.salesmanager.core.constants;



public class RedisConstants {

//   所有产品id. value:product_id
    public static final  String SET_OLD_PRODUCT="set:old:product";
    public static final  String SET_OLD_PRODUCT_FOR_CATEGORY="type6:set:old:product";
//   更新后产品id. value:product_id
    public static final  String SET_NEW_PRODUCT ="set:new:product";
    public static final  String SET_NEW_PRODUCT_FOR_CATEGORY ="type6:set:new:product";

    //. value:product_id 最新排序索引
    public static final  String INDEX_PRODUCT_NEWEST="newest:product";
    public static final  String INDEX_PRODUCT_NEWEST_FOR_CATEGORY ="type6:newest:product";

    //最热排序索引. value:product_id 最热排序
    public static final  String INDEX_PRODUCT_HOTTEST="hottest:product";
    public static final  String INDEX_PRODUCT_HOTTEST_FOR_CATEGORY="type6:hottest:product";

    //. value:product_id 销量排序
    public static final  String INDEX_PRODUCT_VOLUME="volume:product";
    public static final  String INDEX_PRODUCT_VOLUME_FOR_CATEGORY="type6:volume:product";

    //. value:product_id 价格排序索引
    public static final  String INDEX_PRODUCT_PRICE="price:product";
    public static final  String INDEX_PRODUCT_PRICE_FOR_CATEGORY="type6:price:product";

    //价格筛选索引
    public static final  String INDEX_PRODUCT_RANGE_PRICE="price2:product";
    public static final  String INDEX_PRODUCT_RANGE_PRICE_FOR_CATEGORY="type6:price2:product";

    //. value:product_id 折扣排序索引
    public static final  String INDEX_PRODUCT_DISCOUNT="discount:product";
    public static final  String INDEX_PRODUCT_DISCOUNT_FOR_CATEGORY="type6:discount:product";

    // suffix brand_code
    // value:product_id  品牌条件索引
    public static final  String INDEX_BRAND_CODE ="sort:brandCode:";
    public static final  String INDEX_BRAND_CODE_FOR_CATEGORY ="type6:sort:brandCode:";
    // suffix category_code
    // value:product_id 类别条件索引
    public static final  String INDEX_CATEGORY_CODE ="sort:categoryCode:";
    public static final  String INDEX_CATEGORY_CODE_FOR_CATEGORY  ="type6:sort:categoryCode:";

    // suffix category_code
    // value:brand_id 用类别code查询品牌集合条件索引
    public static final  String INDEX_CATEGORY_CODE_BRAND ="brand:categoryCode:";

    //品牌风格条件索引 后缀 code
    public static final  String INDEX_BRAND_SYTLE ="style:brand:";
    //品牌最热排序索引
    public static final  String INDEX_BRAND_HOTTEST ="hottest:brand";
    //品牌活动排序索引
    public static final  String INDEX_BRAND_EVENT ="event:brand";
    //品牌返利排序索引
    public static final  String INDEX_BRAND_RATE ="rate:brand";
    /**
     * Redis 表映射
     */
    // suffix product_id
    // value product
    public static final  String TABLE_PRODUCT="table:product:";
    // suffix band_code
    // value coupon
    public static final  String TABLE_COUPON="table:coupon:";

    public static final  String TABLE_BRAND="table:brand:";
    // suffix area_code
    public static final  String TABLE_AREA="table:area:";
    /**
     * lua脚本
     */
    public static   String FILE_QUERY_PRODUCT="lua/query_product.lua";
    public static   byte[] SHA_QUERY_PRODUCT;
    public static   String FILE_QUERY_BRAND="lua/query_brand.lua";
    public static   byte[] SHA_QUERY_BRAND;

    //类别精品商品
    public static   String FILE_QUERY_PRODUCT_FOR_CATEGORY="lua/query_product_for_category.lua";
    public static   byte[] SHA_QUERY_PRODUCT_FOR_CATEGORY;

    //
    public static final String OPEN_ID = "weichat:license:key:";


}
